#pragma
#include "const.h"
#include "MysqlDao.h"

class MysqlMgr :public Singleton<MysqlMgr>
{
	friend class Singleton<MysqlMgr>;
public:
	~MysqlMgr();
	int RegUser(std::shared_ptr<UserInfo>& user);
	int ResetUser(std::shared_ptr<UserInfo>& user);
	int LoginUser(const std::string& email, const std::string& passwd);
	bool GetEmailIsExist(const std::string& email);
private:
	MysqlMgr();
	MysqlDao _dao;
};